


#include "color.h"



// Color ::



Color::Color( eColor col ) :
    m_nColor( col )
{    
}




Color::Color( Color &col ) :
    m_nColor( eColor( col ) )
{   
}



const char *Color::getText() const
{
    switch( m_nColor )
    {
    case YELLOW:
        return "yellow";
    case GREEN:
        return "green";
    case BROWN:
        return "brown";
    default:
        return "unknown";
    }
}






